package cn.zjutleo.village_server.constants;

/**
 * @author : 杜雨茜
 * @description: Redis相关常量类
 */
public class RedisConstants {

    /**
     * 请求限制 Redis 前缀
     */
    public static final String REQUEST_LIMIT_PREFIX = "village:request:limit:";

    /**
     * RefreshToken Redis 前缀
     */
    public static final String REFRESH_TOKEN_PREFIX = "village:user:token:";

    /**
     * 绑定、手机号登录验证码
     */
    public static final String LOGIN_BY_PHONE_CODE_PREFIX = "village:user:login:code";

    /**
     * 文章点赞
     */
    public static final String POLICY_COLLECTION_CODE_PREFIX = "POLICY:COLLECTION:CODE";

    /**
     * 文章阅读量
     */
    public static final String POLICY_READ_CODE_PREFIX = "POLICY:READ:CODE";

    /**
     * 文章收藏
     */
    public static final String POLICY_STAR_CODE_PREFIX = "POLICY:STAR:CODE";
}
